﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DynCMS.NET.Infrastructure.IOC
{
    /// <summary>
    /// IOC Provider for project
    /// Currently using windsor
    /// </summary>
    public class IOCProvider
    {
        private static IIOCProvider _instance;

        public static IIOCProvider Instance
        {
            get
            {
                _instance = _instance ?? CreateInstance();
                return _instance;
            }
        }

        private static IIOCProvider CreateInstance()
        {
            return new Windsor.IOCProvider();
        }
    }
}